package exp;


public class Count{
	public int num = 0;
	public int fp = 0;
	public int all = 0;
	public void add(Count b){
		num+= b.num;
		all += b.all;
		fp += b.fp;
	}
	public String toString(){

		if (all != 0 ){
			return "recall: "+num + " / "+ all + " = "+ (float)num/all + ";  precision: "+num + " / "+ (num+fp) + " = "+ (float)num/(num+fp) ;
		}
		else{
			return "all = "+all +"   fp = "+fp +", divided by zero";
		}
	}
}